export const tableConfig = [
    { prop: "structureName", label: "三级部件", minWidth: "140" },
    { prop: "inspectionItemName", label: "检查项", minWidth: "160" },
    { label: "检查结果", minWidth: "140", slotName: "check" },
    { label: "建议处置方式", minWidth: "140", slotName: "handle" }
];
export const examinetableConfig = [
    { prop: "structureName", label: "三级部件", minWidth: "140" },
    { prop: "checkProject", label: "检查项", minWidth: "160" },
    { prop: "inspectionResult", label: "检查结果", minWidth: "140" },
    { prop: "suggestDisposalMethod", label: "建议处置方式", minWidth: "140" }
];
export const feedbacktableConfig = [
    { prop: "structureName", label: "三级部件", minWidth: "140" },
    { prop: "checkProject", label: "检查项", minWidth: "160" },
    { label: "实际处置方式", minWidth: "200", slotName: "handle" }
];
export const feedbackLooktableConfig = [
    { prop: "structureName", label: "三级部件", minWidth: "140" },
    { prop: "checkProject", label: "检查项", minWidth: "160" },
    { prop: "disposalMethod", label: "实际处置方式", minWidth: "200" }
];
export const processTableConfig = [
    { prop: "remark", label: "操作", minWidth: "140" },
    { prop: "operator", label: "操作者", minWidth: "140" },
    { prop: "createTime", label: "时间", minWidth: "140" }
];
//审核通过表单
export const examineConfrimConfig = [
    {
        formType: "select",
        formName: "department",
        labelName: "发派维修部门",
        placeholder: "请选择维修部门",
        style: {
            width: "212px"
        },
        options: []
    },
    {
        formType: "select",
        formName: "grade",
        labelName: "确认工单等级",
        placeholder: "请选择工单等级",
        style: {
            width: "212px"
        },
        options: []
    }
];
//审核拒绝表单
export const examineRejectConfig = [
    {
        formType: "input",
        formName: "remark",
        labelName: "不通过理由",
        placeholder: "请输入不通过理由",
        type: "textarea",
        minRows: 5,
        isNoFlex: true,
        style: {
            width: "100%"
        },
        options: []
    }
];
export const examineConfrimRules = {
    department: [
        {
            validator: (rule, value, callback) => {
                if (!value) {
                    callback(new Error("请选择维修部门"));
                } else {
                    return true;
                }
            },
            trigger: "change",
            required: true
        }
    ],
    grade: [
        {
            validator: (rule, value, callback) => {
                if (!value) {
                    callback(new Error("请选择工单等级"));
                } else {
                    return true;
                }
            },
            trigger: "change",
            required: true
        }
    ]
};
export const rejectRules = {
    remark: [
        {
            validator: (rule, value, callback) => {
                if (!value) {
                    callback(new Error("请输入需整改理由"));
                } else {
                    return true;
                }
            },
            trigger: "change",
            required: true
        }
    ]
};
